package com.gy.spark.core.actions

import org.apache.spark.{SparkConf, SparkContext}

object Operator_count {

  def main(args: Array[String]): Unit = {
    val conf = new SparkConf().setAppName(this.getClass.getSimpleName).setMaster("local")
    val sc = new SparkContext(conf)


    val count = sc.textFile("spark/input/words.txt")
      .count()

    println(count)



    sc.stop


  }

}
